package com.demo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.demo.dao.SysRoleMapper;
import com.demo.dao.SysUserRoleMapper;
import com.demo.model.SysRole;
import com.demo.service.RoleService;

@Service
public class RoleServiceImpl implements RoleService {
	@Autowired
	private SysRoleMapper userMapper;

	@Override
	public SysRole findUserRole(String loginName) {
		return userMapper.selectRoleByUsername(loginName);
	}

}
